﻿using UnityEngine;

namespace Vosvek.ProjectRogue
{

    // TODO: Implement
    // - Movement
    // - Attacking
    // - Spell Effects
    public class Actor : MonoBehaviour
    {
        public string DisplayName = "Stranger";
        public Brain Brain;
        public Mover Mover;
        public Inventory Inventory;

        void Start()
        {
            Brain = new Brain(this);
            Mover = new Mover(this);
        }

        public bool Move(Vector2 direction)
        {
            return Mover.TryMove(direction);
        }

        public void ApplySpellEffect()
        {
            // TODO: Implement.
        }

        public void OnTurnTick()
        {
            // TODO: Regenerate stats, apply any effect damages, etc.
        }
    }

}
